package org.jjche.sys.modules.fillrule.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jjche.common.base.BaseDTO;
import org.jjche.common.base.BaseQueryCriteriaDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* <p>
* 系统编码规则
* </p>
*
* @author miaoyj
* @since 2024-05-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class SysFillRuleDTO extends BaseQueryCriteriaDTO implements BaseDTO {
   @ApiModelProperty(value = "ID")
   @NotNull(message = "id不能为空", groups = Update.class)
   private Long id;
   @ApiModelProperty(value = "名称")
   @NotBlank(message = "名称不能为空")
   @Length(max = 100, message = "名称最大长度不能超过100")
   private String name;
   @ApiModelProperty(value = "Code")
   @NotBlank(message = "Code不能为空")
   @Length(max = 100, message = "Code最大长度不能超过100")
   private String code;
   @ApiModelProperty(value = "实现类")
   @NotBlank(message = "实现类不能为空")
   @Length(max = 100, message = "实现类最大长度不能超过100")
   private String ruleClass;
   @ApiModelProperty(value = "参数")
   @Length(max = 200, message = "参数最大长度不能超过200")
   private String params;
}
